package com.hzcx.app.simplechat.ui.group.presenter;

import android.content.Context;

import com.hzcx.app.simplechat.api.BaseDialogObserver;
import com.hzcx.app.simplechat.api.BaseObserver;
import com.hzcx.app.simplechat.base.BasePresenter;
import com.hzcx.app.simplechat.model.GroupModel;
import com.hzcx.app.simplechat.model.UserModel;
import com.hzcx.app.simplechat.ui.chat.contract.ChatContract;
import com.hzcx.app.simplechat.ui.group.bean.GroupInfoBean;
import com.hzcx.app.simplechat.ui.group.contract.GroupInfoContract;
import com.hzcx.app.simplechat.ui.user.bean.UserInfoBean;


public class GroupInfoPresenter extends BasePresenter<GroupInfoContract.View> implements GroupInfoContract.Presenter {
    @Override
    public void getGroupInfo(Context context, String groupID) {
        GroupModel.getGroupInfo(context, groupID, new BaseObserver<GroupInfoBean>() {
            @Override
            protected void onSuccess(GroupInfoBean data) {
                mView.groupInfo(data);
            }
        });
    }
}
